<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	//String userName = request.getSession().getAttribute("userName").toString();
	//String json = request.getSession().getAttribute("JSON").toString();
	//String userId = request.getSession().getAttribute("userId").toString();
	//String allMenus = request.getSession().getAttribute("allMenus").toString();
	//String actualName = request.getSession().getAttribute("actualName").toString();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<base href="<%=basePath%>">
<head>
<meta charset="UTF-8">
<title>头部</title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/style.css" />
<link rel="stylesheet" type="text/css" href="<%=basePath%>css/top.css" />
</head>
<script type="text/javascript">
	<%-- var basePath = '<%=basePath%>'
	var userId = <%=userId%>;
	var json = <%=json%>
	var data  = eval(json);
	var allMenus = eval(<%=allMenus%>); --%>
</script>
<body>
    <div class="wrap clear">
        <div class="logo floatLeft clear">
           <img src="<%=basePath%>img/top/logo11.png" />
        </div>
       <p class="marquee"></p>
    </div>
</body>
<script src="<%=basePath%>js/3rd/jquery-1.9.1.min.js" type="text/javascript" charset="utf-8"></script>
<%-- <script src="<%=basePath%>js/frame/top.js" type="text/javascript" charset="utf-8"></script> --%>
<script src="<%=basePath%>/js/3rd/moment.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	//系统日期显示
	$(function(){	
		getNowTime();
	});
	
	function getNowTime(){
		$(".marquee").html("");
		<%-- var userName = '<%=userName%>';
		var actualName = '<%=actualName%>'; --%>
		var now = new Date();
		var show_day = new Array('星期日','星期一','星期二','星期三','星期四','星期五','星期六');
		
		var timeStr = moment().format('HH:mm:ss');
	    /* var currentTime = "当前用户：&emsp;<span id='currentUser'>" + userName + "</span>&emsp;&emsp;<span>" + 
	    now.getFullYear() + "</span>年<span>" + (now.getMonth() + 1) + "</span>月<span>" + now.getDate() + 
	    "</span>日&emsp;<span>" + show_day[now.getDay()] + "</span>&emsp;<span>" + timeStr + "</span>"; */
	    var currentTime = "当前用户：&emsp;<span id='currentUser'>Administrator</span>&emsp;&emsp;<span>" + 
	    now.getFullYear() + "</span>年<span>" + (now.getMonth() + 1) + "</span>月<span>" + now.getDate() + 
	    "</span>日&emsp;<span>" + show_day[now.getDay()] + "</span>&emsp;<span>" + timeStr + "</span>";
	    $(".marquee").html(currentTime);
	}
	
	window.setInterval(function(){
		getNowTime();
	},1000); 
</script>
</html>